<template>
  <div class="xtx-bread-item">
    <RouterLink v-if="to" :to="to"><slot /></RouterLink>
    <span v-else><slot /></span>
  </div>
</template>
<script lang="ts">
  export default {
      name: 'XtxBreadItem'
  }
</script>
<script setup lang="ts">
  const props = defineProps({
    to: {
      type: [String, Object]
    }
  })
</script>